package org.jeecg.modules.yw.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.yw.entity.AnnouncementScope;
import org.jeecg.modules.yw.mapper.AnnouncementScopeMapper;
import org.springframework.stereotype.Service;

@Service
public class AnnouncementScopeService extends ServiceImpl<AnnouncementScopeMapper, AnnouncementScope> {
    public void removeByAnnouncementId(String id) {
        QueryWrapper<AnnouncementScope> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("announcement_id", id);
        this.remove(queryWrapper);
    }
}
